using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Hsp.WebNovels.Model.Models
{
    /// <summary>
    /// 小说信息数据实体
    /// </summary>
    [Table("Novels")]
    [SugarTable("Novels")]
    public partial class Novel
    {
        /// <summary>
        /// 小说编号
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey=true)]
        public string? Id { get; set; }

        /// <summary>
        /// 网站编号
        /// </summary>
        [DisplayName("网站编号")]
        [StringLength(36)]
        public string? WebId { get; set; }

        /// <summary>
        /// 小说标题
        /// </summary>
        [DisplayName("小说标题")]
        public string? Title { get; set; }

        /// <summary>
        /// 小说地址
        /// </summary>
        [DisplayName("小说地址")]
        public string? NovelUrl { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        [DisplayName("作者")]
        [StringLength(20)]
        public string? Author { get; set; }

        /// <summary>
        /// 小说状态：0-连载中；1-已完本；2-已太监；
        /// </summary>
        [DisplayName("小说状态")]
        public int? Status { get; set; }

        /// <summary>
        /// 章节模板，如第$2章
        /// </summary>
        [DisplayName("章节模板")]
        [StringLength(20)]
        public string? ChapterChar { get; set; } = "第$2章";

        /// <summary>
        /// 章节数量
        /// </summary>
        [DisplayName("章节数量")]
        public int? ChapterCount { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DisplayName("添加时间")]
        [DataType(DataType.DateTime)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DisplayName("更新时间")]
        [DataType(DataType.DateTime)]
        public DateTime? UpdateTime { get; set; }

 
    }
}
